]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add 'r' as an alias to 'restart' in run dialog
authorColin Walters <walters@verbum.org>
Wed, 26 Aug 2009 22:43:44 +0000 (18:43 -0400)
committerColin Walters <walters@verbum.org>
Wed, 26 Aug 2009 22:43:44 +0000 (18:43 -0400)
For even faster turnaround inspection of changes.

Also add a comment about the idle_add in the 'lg' command.

js/ui/runDialog.js

index 53a56e95a8501129966860dd143b69996e64cd2d..fd114adf9bf578548e87c91bead7d47153b3d1b4 100644 (file)
@@ -36,9 +36,16 @@ RunDialog.prototype = {
 
         this._internalCommands = { 'lg':
                                    Lang.bind(this, function() {
+                                       // Run in an idle to avoid recursive key grab problems
                                        Mainloop.idle_add(function() { Main.createLookingGlass().open(); });
                                    }),
-                                   
+
+                                   'r': Lang.bind(this, function() {
+                                       let global = Shell.Global.get();
+                                       global.reexec_self();
+                                   }),
+
+                                   // Developer brain backwards compatibility
                                    'restart': Lang.bind(this, function() {
                                        let global = Shell.Global.get();
                                        global.reexec_self();